package chen.web.widget.vote;

import java.text.SimpleDateFormat;
import java.util.Date;

public class VoterInfo {

	private int accountId;
	private String nickname;
	private String ip;
	private String uuid;
	private Date date;
	

	public String getNickname() {
		return nickname;
	}
	public void setNickname(String nickname) {
		this.nickname = nickname;
	}
	public String getIp() {
		return ip;
	}
	public void setIp(String ip) {
		this.ip = ip;
	}
	public Date getDate() {
		return date;
	}
	public void setDate(Date date) {
		this.date = date;
	}
	public void setAccountId(int accountId) {
		this.accountId = accountId;
	}
	public int getAccountId() {
		return accountId;
	}
	public void setUuid(String uuid) {
		this.uuid = uuid;
	}
	public String getUuid() {
		return uuid;
	}
	
	private static SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm");
	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return new StringBuffer().append(accountId)
								.append('*')
								.append(nickname)
								.append('*')
								.append(ip)
								.append('*')
								.append(uuid)
								.append('*')
								.append(sdf.format(date))
								.toString();
	}
}
